package ooday03;

public class Dog extends Animal implements Swim{
    public Dog(String name, int age, String color){
        super(name, age, color);
    }
    void eat(){
        System.out.println(color+age+"岁的"+name+"在吃饭");
    }
    void drink(){
        System.out.println(color+age+"岁的"+name+"在喝水");
    }
    void lookHome(){
        System.out.println(name+"在看家");
    }
    public void swim(){
        System.out.println(color+age+"岁的"+name+"在狗刨");
    }
}
